<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
  <head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2008. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
   <title>
      Java Editor Preferences
    </title>
    <link rel="stylesheet" href="../../../book.css" charset="ISO-8859-1" type="text/css">
    <script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js" type="text/javascript"> </script>
  </head>
  <body>
    <h1>
      Java Editor Preferences
    </h1>
    <p>
      The following Java editor preferences can be set on the
      <a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.jdt.ui.preferences.JavaEditorPreferencePage)")'>
      <img src="PLUGINS_ROOT/org.eclipse.help/command_link.svg" alt="Opens the Java Editor preference page">
      <b>Java &gt; Editor</b></a> preference page
      and its sub-pages.
    </p>
    <ul>
    	<li><a href="editor/ref-preferences-code-minings.htm">Code Minings</a>
      <li><a href="editor/ref-preferences-content-assist.htm">Content Assist</a>
      <ul>
      <li><a href="editor/ref-preferences-content-assist-advanced.htm">Advanced</a></li>
      <li><a href="editor/ref-preferences-content-assist-favorites.htm">Favorites</a></li>
      </ul>
      </li>
      <li><a href="editor/ref-preferences-folding.htm">Folding</a></li>
      <li><a href="editor/ref-preferences-hovers.htm">Hovers</a></li>
      <li><a href="editor/ref-preferences-mark-occurrences.htm">Mark Occurrences</a></li>
      <li><a href="editor/ref-preferences-save-actions.htm">Save Actions</a></li>
      <li><a href="editor/ref-preferences-syntax-coloring.htm">Syntax Coloring</a></li>
      <li><a href="editor/ref-preferences-templates.htm">Templates</a></li>
      <li><a href="editor/ref-preferences-typing.htm">Typing</a></li>
    </ul>
    <p>
      Note that some options that are generally applicable to text editors can be configured on the text editor preference page.
    </p>
    <table border="1" cellspacing="0" cellpadding="5" width="100%" summary="General editor settings">
      <thead>
        <tr>
          <th>Option</th>
          <th>Description</th>
          <th>Default</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td valign="top">
          Smart caret positioning in Java names (overrides platform behavior)
          </td>
          <td valign="top">
            <p>
              If enabled, there are additional word boundaries inside <tt>|Camel|Case|</tt> Java names.
            </p>
          </td>
          <td valign="top">
            <p>
              On
            </p>
          </td>
        </tr>
        <tr>
          <td valign="top">
          Report problems as you type
          </td>
          <td valign="top">
            <p>
              If enabled, the editor marks errors and warnings as you type, even if you do not save the editor contents. The problems are updated after a short delay.
            </p>
          </td>
          <td valign="top">
            <p>
              On
            </p>
          </td>
        </tr>
        <tr>
          <td valign="top">
          Bracket highlighting
          </td>
          <td valign="top">
            <p>
              If enabled, the Java editor highlights parenthesis, bracket or curly braces, based on which sub-option is selected.
            </p>
            <p>
              The color of the bracket highlight is specified with <strong>Appearance color options</strong>.
            </p>
          </td>
          <td valign="top">
            <p>
              On
            </p>
          </td>
        </tr>
        <tr>
          <td valign="top" style="padding-left: 1em;">
          Matching bracket
          </td>
          <td valign="top">
            <p>
              If enabled, whenever the cursor is next to a bracket, its opening or closing counter part is highlighted.
            </p>
          </td>
          <td valign="top">
            <p>
              On
            </p>
          </td>
        </tr>
        <tr>
          <td valign="top" style="padding-left: 1em;">
          Matching bracket and caret location
          </td>
          <td valign="top">
            <p>
              If enabled, whenever the cursor is next to a bracket, both the bracket and its opening or closing counter part are highlighted.
            </p>
          </td>
          <td valign="top">
            <p>
              Off
            </p>
          </td>
        </tr>
        <tr>
          <td valign="top" style="padding-left: 1em;">
          Enclosing brackets
          </td>
          <td valign="top">
            <p>
              If enabled, the Java editor highlights the closest bracket pair enclosing the cursor. 
            </p>
          </td>
          <td valign="top">
            <p>
              Off
            </p>
          </td>
        </tr>
        <tr>
          <td valign="top">
          Light bulb for quick assists
          </td>
          <td valign="top">
            <p>
              If enabled, a <img src="../../../images/org.eclipse.jdt.ui/obj16/quickassist_obj.svg" alt="light bulb">  shows up in the vertical ruler whenever a <strong>quick assist</strong> is available. See the <a href="../../ref-java-editor-quickassist.htm">quick assist section</a> for a list of the available assists.
            </p>
          </td>
          <td valign="top">
            <p>
              Off
            </p>
          </td>
        </tr>
        <tr>
          <td valign="top">
          Only show the selected Java element
          </td>
          <td valign="top">
            <p>
              If enabled, the Java editor will only show the selected Java element which is currently selected (i.e. in the Outline View or the Package Explorer).
            </p>
          </td>
          <td valign="top">
            <p>
              Off
            </p>
          </td>
        </tr>
        <tr>
          <td valign="top">
            Appearance color options
          </td>
          <td valign="top">
            <p>
              The colors of various Java editor appearance features are specified here.
            </p>
            <dl>
              <dt>Matching brackets highlight</dt>
              <dd>The color of brackets highlight.</dd>
            
              <dt>Parameter hints background</dt>
              <dd>The background color of the parameter hint window</dd>
            	
              <dt>Parameter hints foreground</dt>
              <dd>The foreground color of the parameter hint window</dd>
            
              <dt>Completion overwrite background</dt>
              <dd>The background color of the completion overwrite window</dd>
           		
           	  <dt>Completion overwrite foreground</dt>
              <dd>The foreground color of the completion overwrite window</dd>
              
              <dt>Source hover background</dt>
              <dd>The background color for the source hover. The source hover shows the source code of the element under the mouse pointer.</dd>
            </dl>
          </td>
          <td valign="top">
            <p>
              default colors
            </p>
          </td>
        </tr>
      </tbody>
    </table>
    <h3 class="related">Related Concepts</h3>
      <a href="../../../concepts/concept-java-editor.htm">Java editor</a>
    <h3 class="related">Related References</h3>
      <a href="../../../reference/views/ref-java-editor.htm">Java editor</a><br>
      <a href="codestyle/ref-preferences-formatter.htm">Code formatter preferences</a><br>
      <a href="../../../reference/views/ref-view-outline.htm">Java outline</a><br>
      <a href="../../../reference/ref-java-editor-code-assist.htm">Java content assist</a><br>
      <a href="../../../reference/ref-java-editor-quickfix.htm">Quick Fix</a><br>
      <a href="../../../reference/ref-java-editor-quickassist.htm">Quick Assist</a>
  </body>
</html>

